package Dynamic2;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author fly
 * @create 2021--05--18--10:14
 */
public class Dali implements InvocationHandler {
    private Object jx;//
    public Dali(Object jx){
        this.jx=jx;
    }
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("开始发送信息");
        Object result = method.invoke(jx, args);
        System.out.println("发送消息完成");
        return result;
    }
}
